import {
	get,post,postJson
} from './request.js';

// 分享相关
// 生活转共享文章
export const lifeToArticle = data => postJson('/convert/lifeToArticle', data);
// 文章转共享文章
export const articleToShared = data => postJson('/convert/articleToShared', data);
// 文章转生活
export const articleToLife = data => postJson('/convert/articleToLife', data);

// 登录
export const loginusername = data => postJson('/login/username', data);

// 获取用户信息
export const myInfo = data => postJson('/myInfo', data);

//获取oss配置
export const getOssPolicy = data => postJson('/getOssPolicy', data);

//获取oss配置
export const getOssUserAvatarPolicy = data => postJson('/getOssUserAvatarPolicy', data);

// 注册
export const register = data => postJson('/register', data);

//修改图片
export const changeAvatar = data => postJson('/changeAvatar', data);

//修改用户名
export const updateNicknameOrRemark = data => postJson('/updateNicknameOrRemark', data);

//发送验证码
export const getPhoneCode = data => postJson('/getPhoneCode', data);

//修改手机号
export const changePhone = data => postJson('/changePhone', data);

//修改密码
export const changePwd = data => postJson('/changePwd', data);

//忘记密码
export const forgetPassword = data => postJson('/forgetPassword', data);

//分类列表
export const getAllCategories = data => postJson('/getAllCategories', data);

//文章列表
export const queryArticles = data => postJson('/queryArticles', data);

//文章分享列表
export const querySharedArticles = data => postJson('/querySharedArticles', data);

//手机号登录
export const loginphone = data => postJson('/login/phone', data);

//文章详情
export const viewArticle = data => postJson('/viewArticle', data);
export const viewSharedArticle = data => postJson('/viewSharedArticle', data);

//评论
export const commentArticle = data => postJson('/commentArticle', data);

//点赞  取消点赞
export const likeUnlikeArticle = data => postJson('/likeUnlikeArticle', data);

// 文章收藏 取消收藏
export const favoriteUnFavoriteArticle = data => postJson('/favoriteUnFavoriteArticle', data);

//删除评论
export const deleteComment = data => postJson('/deleteComment', data);

//我的足迹
export const myFootprint = data => postJson('/myFootprint', data);

//我的收藏
export const myFavorite = data => postJson('/myFavorite', data);

//发布文章
export const upsertArticle = data => postJson('/upsertArticle', data);

//删除文章
export const deleteArticle = data => postJson('/deleteArticle', data);

//创建家庭
export const addFamily = data => postJson('/addFamily', data);

//查找成员
export const queryFamilyMember = data => postJson('/queryFamilyMember', data);

//删除家庭
export const deleteFamilyById = data => postJson('/deleteFamilyById', data);

//家庭管理员把某一个家庭成员踢出家庭
export const kickoffFamilyMember = data => postJson('/kickoffFamilyMember', data);

//修改
export const updateFamilyName = data => postJson('/updateFamilyName', data);

//我的家庭
export const myFamily = data => postJson('/myFamily', data);

//添加家庭成员
export const addFamilyMember = data => postJson('/addFamilyMember', data);

//删除成员
export const deleteFamilyMemberById = data => postJson('/deleteFamilyMemberById', data);

//修改成员
export const updateFamilyMember = data => postJson('/updateFamilyMember', data);

//退出家庭
export const quitFamily = data => postJson('/quitFamily', data);

//家庭管理员转移到另外一个家庭成员
export const transferFamilyManager = data => postJson('/transferFamilyManager', data);

//返回指定的家庭信息
export const getFamilyInfoByFamilyId = data => postJson('/getFamilyInfoByFamilyId', data);

//添加-更新日历事件
export const calendarupsert = data => postJson('/calendar/upsert', data);

//获取日历事件
export const getCalendarEventsByDate = data => postJson('/calendar/getCalendarEventsByDate', data);

//删除日历事件
export const calendardelete = data => postJson('/calendar/delete', data);


//家庭列表
export const myFamilies = data => postJson('/myFamilies', data);

//根据url生成二维码
export const getUrlQrCode = data => get('/getUrlQrCode', data);

//接受邀请，加入家庭
export const acceptInvite = data => postJson('/acceptInvite', data);

//各种条件查询生活
export const queryLives = data => postJson('/queryLives', data);

//获取所有生活分类
export const getAllLifeCategories = data => postJson('/getAllLifeCategories', data);

//发布生活
export const publishLife = data => postJson('/publishLife', data);


//增加-更新生活
export const upsertLife = data => postJson('/upsertLife', data);

//增加-更新生活
export const upsertOtherLife = data => postJson('/upsertOtherLife', data);


//删除生活
export const deleteLife = data => postJson('/deleteLife', data);

//给生活写评论
export const commentLife = data => postJson('/commentLife', data);

//删除生活评论
export const deleteLifeComment = data => postJson('/deleteLifeComment', data);

//获取流事件
export const stream = data => postJson('/stream', data);

//查询我的AI聊天记录
export const queryMyChat = data => postJson('/queryMyChat', data);

//查询我的AI聊天记录
export const queryMyChatConvert = data => postJson('/queryMyChatConvert', data);

//获取配置
export const getConfig = data => get('/', data);

//在微信小程序使用微信登录
export const loginByWp = data => postJson('/login/loginByWp', data);

//返回我的汇总信息
export const mySummary = data => postJson('/mySummary', data);


//第三方账号绑定
export const otherBind = data => postJson('/otherBind', data)


//修改用户信息
export const upateUserInfo = data => postJson('/upateUserInfo', data)

//获取聊天配置
export const getChatConfig = data => postJson('/getChatConfig', data)

//修改聊天配置
export const updateChatConfig = data => postJson('/updateChatConfig', data)

//生成小程序二维码
export const getWxWpACode = data => postJson('/getWxWpACode', data)

//返回家庭成员基本信息
export const getMemberInfo = data => postJson('/getMemberInfo', data);

//注册并登录
export const registerAndLogin = data => postJson('/registerAndLogin', data);

//获取支付套餐
export const getPaySet = data => postJson('/getPaySet', data);
export const fetPaySet = data => postJson('/fetchPaySet', data);
//用户选择套餐支付
export const pay = data => postJson('/pay', data);

//签到
export const checkin = data => postJson('/checkin', data);

//支付
export const wxMiniPayGet = data => postJson('/unifiedPay/unifiedPay', data);

//在微信小程序使用微信登录
export const loginloginByWp = data => postJson('/login/loginByWp', data);


//在微信小程序使用微信登录
export const loginloginByWp2 = data => postJson('/login/loginByWp2', data);

//获取微信小程序手机号
export const getWxmpPhoneNo = data => postJson('/getWxmpPhoneNo', data);

//查询可用纪念馆样式
export const museumStylequeryAvailableMuseumStyle = data => postJson('/museumStyle/queryAvailableMuseumStyle', data);

//增加纪念馆
export const museuminsertMuseum = data => postJson('/museum/insertMuseum', data);

// 查询纪念馆
export const museumgetAllMuseum = data => postJson('/museum/getAllMuseum', data);

// 查询纪念馆详情
export const museumgetMuseum = data => postJson('/museum/getMuseum', data);

//更新纪念馆
export const museumupdateMuseum = data => postJson('/museum/updateMuseum', data);

//纪念馆留言
export const museummuseumLeaveMessage = data => postJson('/museum/museumLeaveMessage', data);

//查询可用墓碑样式
export const gravestoneStylequeryAvailableGravestoneStyle = data => postJson('/gravestoneStyle/queryAvailableGravestoneStyle', data);

//查询可用厅样式
export const hallStylequeryAvailableHallStyle = data => postJson('/hallStyle/queryAvailableHallStyle', data);


//增加大厅
export const hallinsertHall = data => postJson('/hall/insertHall', data);

//查询大厅
export const hallgetHall = data => postJson('/hall/getHall', data);

//更新大厅
export const hallupdateHall = data => postJson('/hall/updateHall', data);

//查询厅礼物的分类
export const getAssetTypeConfig = data => postJson('/asset/getAssetTypeConfig', data);


//查询厅能用的礼物
export const assetqueryAsset = data => postJson('/asset/queryAsset', data);


//查询厅下一级分类可用的礼物 
export const assetqueryAssetByType = data => postJson('/asset/queryAssetByType', data);

//在厅中添加资产 
export const hallattachAssetToHall = data => postJson('/hall/attachAssetToHall', data);


//大厅留言 
export const hallcommentHall = data => postJson('/hall/commentHall', data);


//删除评论 
export const halldeleteComment = data => postJson('/hall/deleteComment', data);

//纪念馆留言 
export const museumcommentMuseum = data => postJson('/museum/commentMuseum', data);

//纪念馆留言 
export const checkHallMaxAssetCount = data => postJson('/hall/checkHallMaxAssetCount', data);

//查询家庭成员关系 
export const queryFamilyMemberRelation = data => postJson('/familyMemberRelation/queryFamilyMemberRelation', data);

//获取和亲人的关系集合 
export const getRelation = data => postJson('/ai/getRelation', data);


//增加-更新家庭成员关系 
export const upsertFamilyMemberRelation = data => postJson('/familyMemberRelation/upsertFamilyMemberRelation', data);


//和自己的亲人聊天 
export const streamChatWithFamilyMember = data => postJson('/ai/streamChatWithFamilyMember', data)


//和自己的亲人聊天 
export const aichatWithFamilyMember = data => postJson('/ai/chatWithFamilyMember', data)

//随机抽取家庭成员声音模型 
export const randomChooseVoiceCharacter = data => postJson('/familyMemberVoiceCharacter/randomChooseVoiceCharacter', data)

//获取未读系统消息个数 
export const getUnReadSystemMessageCount = data => postJson('/message/getUnReadSystemMessageCount', data)

//获取系统消息 
export const getSystemMessage = data => postJson('/message/getSystemMessage', data)

//系统消息已读 
export const systemMessageRead = data => postJson('/message/systemMessageRead', data)

//查看支持的方言 
export const getSupportedDialect = data => postJson('/familyMemberVoiceCharacter/getSupportedDialect', data)


//上传家庭成员的声音和对应的文本 
export const uploadFamilyMemberSound = data => postJson('/familyMemberVoiceCharacter/uploadFamilyMemberSound', data)


//查看家庭成员的音色是否有设置 
export const checkMemberVoiceExist = data => postJson('/familyMemberVoiceCharacter/checkMemberVoiceExist', data)

//获取阅读的音频文本 
export const getReadText = data => postJson('/familyMemberVoiceCharacter/getReadText', data)

//语音中文识别 
export const soundToText = data => postJson('/familyMemberVoiceCharacter/soundToText', data)

//获取配置 
export const getSysParam = data => postJson('/', data)

//获取系统文章分类 
export const getSystemArticleCategory = data => postJson('/getSystemArticleCategory', data)

//异步和自己的亲人聊天 
export const asyncChatWithFamilyMember = data => postJson('/ai/asyncChatWithFamilyMember', data)
//获取任务结果 
export const getTaskResult = data => postJson('/task/getTaskResult', data)

// 获取任务结果
export const taskgetTaskResult= data => postJson('/task/getTaskResult', data);

// 获取微信PC登录地址
export const getPcWxLoginUrl= data => postJson('/pc/getPcWxLoginUrl', data);

// PC微信注册并登录
export const wxPcLogin= data => get('/pc/wxPcLogin', data);

// 获取任务分类
export const getTaskCategory= data => get('/myTasks/getTaskCategory', data);


